//
//  DYPaymentCodeVC.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/12.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYPaymentCodeVC.h"
#import "DYPaymentcodeView.h"
#import "DYPaymentRecordsVC.h"

@interface DYPaymentCodeVC ()

@property (nonatomic,strong)DYPaymentcodeView *codeView;

@end

@implementation DYPaymentCodeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationItem.title=@"收款条码";
    [self createRightBarItem:nil titleString:@"收款记录"];
    self.view.backgroundColor=[UIColor xhq_base];
}
-(void)dy_initData
{
    [super dy_initData];
    
}
-(void)rightClick
{
    DYPaymentRecordsVC *vc=[[DYPaymentRecordsVC alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    [self.view addSubview:self.codeView];
}
-(DYPaymentcodeView *)codeView
{
    if (!_codeView) {
        _codeView=[[DYPaymentcodeView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight-kNavigationStatusHeight)];
    }
    return _codeView;
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    
    [self NavaigationColor:[UIColor xhq_base]];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
